﻿@using RuoVea.Tool.Model
@{
    var host = Appsettings.app("BaseFile:HostUrl");
    var imageUrl = Appsettings.app("BaseFile:ImageUrl");
    var path = @Context.Request.Path.Value;
    var islogin = (User?.Claims?.Count() > 0);
    string account = User?.Claims?.Where(x => x.Type == "Account")?.Select(x => x.Value)?.FirstOrDefault();
}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>@Html.Raw(ViewData["Title"]) - 在线工具 - 诺威网</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="keywords" content="@Html.Raw(ViewData["keywords"]==null?"在线工具,开发人员工具,代码格式化、压缩、加密、解密,下载链接转换,字帖,田字格,进制转换,二维码,正则表达式,json格式化,照片压缩,pdf合并":ViewData["keywords"])">
    <meta name="description" content="@Html.Raw(ViewData["description"]==null?"在线工具,开发人员工具,代码格式化、压缩、加密、解密,下载链接转换,json格式化,正则测试工具,favicon在线制作,字帖工具,中文简繁体转换,迅雷下载链接转换,进制转换,二维码,照片压缩,pdf合并":ViewData["description"])">
    <meta property="og:description" content="@Html.Raw(ViewData["description"]==null?"在线工具,开发人员工具,代码格式化、压缩、加密、解密,下载链接转换,json格式化,正则测试工具,favicon在线制作,字帖工具,中文简繁体转换,迅雷下载链接转换,进制转换,二维码,照片压缩,pdf合并":ViewData["description"])">
    <meta property="og:type" content="website">
    <meta property="og:image" content="@host/images/logo.png">
    <meta property="og:url" content="@host">

    <link rel="stylesheet" type="text/css" href="@host/res/layui/css/layui.css">
    <link rel="stylesheet" type="text/css" href="@host/css/main.css" asp-append-version=true>@await RenderSectionAsync("Styles", required: false)
</head>
<body class="micronews">
    <div class="micronews-header-wrap layui-fix">
        <div class="micronews-header w1200 layui-clear">
            <h1 class="logo"><a href="index.html"><img src="@host/images/logo.png" alt="logo" style="height:40px;"><span class="layui-hide">logo</span></a></h1>
            <component type="typeof(Components.CompSearch)" render-mode="Static" />
            <component type="typeof(Components.CompLogin)" param-islogin=islogin param-account=account render-mode="Static" />
        </div>
        <div class="micr-header w1200 layui-clear " style="margin-top:20px; "><component type="typeof(Components.CompNav)" render-mode="Static" /></div>
    </div>
    <main role="main" class="pb-3">
        <div class="micronews-container micronews-details-container w1200">
            <div class="layui-fluid">
                <div class="layui-row">
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md10">
                        <div class="main">
                            <div style="padding:15px 0px;font-size: 16px;"> <span class="layui-crumb"> <a href="@host">在线工具</a><span>/</span> <a><cite>@Html.Raw(ViewBag.Title)</cite></a> </span> </div>
                            @RenderBody()
                        </div>
                        <component type="typeof(Components.CompMessage)" render-mode="ServerPrerendered" />
                    </div>
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md2">
                        <div class="popular-info popular-info-tog" style="position: fixed;">
                            <component type="typeof(Components.CompPopular)" param-url="@path" render-mode="ServerPrerendered" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </main>
    <component type="typeof(Components.CompFooter)" render-mode="Static" />
    <script type="text/javascript" src="@host/res/layui/layui.js"></script>
      <script src="@host/js/login.js"></script>
    @*<script type="text/javascript" src="@host/js/forbiddenf12.js"></script>*@
    <script src="@host/lib/jq/xe-clipboard.js"></script>
    <script src="@host/js/baidutj.js"></script>
    <script>layui.config({ base: '@host/js/' }).use('index',function(){ var index = layui.index,$ = layui.$; index.EnterMessage(); var collOff = true; $('.Collection').on('click',function(){ if(collOff){ $(this).addClass('active'); }else{ $(this).removeClass('active'); } collOff = !collOff }); index.seachBtn(); index.onInput(); index.arrowutil();});</script>@await RenderSectionAsync("Scripts", required: false)
</body>
</html>

